/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entidades;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Gleydson
 */
@Entity
@Table(name = "administrador")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Administrador.findAll", query = "SELECT a FROM Administrador a"),
    @NamedQuery(name = "Administrador.findByLogin", query = "SELECT a FROM Administrador a WHERE a.login = :login")})
public class Administrador extends Usuario implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @OneToMany(mappedBy = "login")
    private List<Backup> backupList;

    public Administrador() {
    }

    /**
     * @return the backupList
     */
    public List<Backup> getBackupList() {
        return backupList;
    }

    /**
     * @param backupList the backupList to set
     */
    public void setBackupList(List<Backup> backupList) {
        this.backupList = backupList;
    }
}
